﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShipmentsCheck.aspx.cs" Inherits="FJERP.ShipmentsCheck" %>

<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,member-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
    <link href="css/H-ui.min.css" rel="stylesheet" type="text/css" />
    <link href="css/H-ui.admin.css" rel="stylesheet" type="text/css" />
    <link href="lib/Hui-iconfont/1.0.1/iconfont.css" rel="stylesheet" type="text/css" />
    <!--[if IE 6]>
<script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
    <title>供应商列表</title>
</head>
<body>
    <form runat="server">

        <div class="page-container">

            <asp:Repeater ID="Repeater1" runat="server" >
                <HeaderTemplate>
                    <%-- 头模板--%>
                    <table class="table table-border table-bordered table-bg">
                        <thead>
                            <tr>
                                <th scope="col" colspan="9">销售单列表</th>
                            </tr>
                            <tr class="text-c">

                                <th>销售编号</th>
                                <th>单据号</th>
                                <th>开单日期</th>
                                <th>经办人</th>
                                <th>会员</th>
                                <th>仓库</th>
                                <th>应收金额</th>
                            </tr>
                        </thead>
                </HeaderTemplate>
                <ItemTemplate>
                    <%--项模板--%>

                    <tr class="text-c">

                        <td><%#Eval("Shipments_Id") %></td>
                        <td><%#Eval("Shipments_blitems") %></td>
                        <td><%#Eval("Shipments_data") %></td>
                        <%--<td><%#Eval("Purchase_State") %></td>--%>
                        <td><%#Eval("Employee_Name") %></td>
                        <td><%#Eval("MemberCard_Name") %></td>
                        <td><%#Eval("WareHose_Name") %></td>
                        <td><%#Eval("Shipments_Price") %></td>
                        
                    </tr>

                </ItemTemplate>
                <FooterTemplate>
                    <%--尾部模板--%>
                   </table>
                </FooterTemplate>
            </asp:Repeater>
            <br />
            <table class="table table-border table-bordered table-bg table-hover table-sort" id="psser">
                <thead>
                    <tr class="text-c">
                        <th>编号</th>
                        <th>商品</th>
                        <th>购买数量</th>
                        <th>价格</th>
                    </tr>
                    
                </thead>
                <tbody>
                </tbody>

            </table>
            <br />
            <img src="images/R$VXF_$$G6HP]JUGTV(~OM1.png" style="margin-left:100px;" /><img src="images/ZFB1.jpg" style="margin-left:20%"/> <input style="margin-left:40px;width:140px; height:80px; font-size:30px" type="button" onclick="add()" value="付款成功"  />
            <br /><br /><br /><span style="margin-left:150px;font-size:20px">☝☝☝微信付款☝☝☝</span> <span style="margin-left:28%;font-size:20px">☝☝☝支付宝付款☝☝☝</span><br />

            

        </div>
        <script src="lib/jquery/1.9.1/jquery.min.js"></script>
        <script type="text/javascript" src="lib/layer/1.9.3/layer.js"></script>
        <script type="text/javascript" src="lib/laypage/1.2/laypage.js"></script>
        <script type="text/javascript" src="lib/My97DatePicker/WdatePicker.js"></script>
        <script type="text/javascript" src="lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
        <script type="text/javascript" src="js/H-ui.js"></script>
        <script type="text/javascript" src="js/H-ui.admin.js"></script>
    </form>
</body>
</html>
<script>
    $(function () {
        var url = document.location.href;
        var url1 = url.split("=")[1];
        $.ajax({
            type: "post",
            url: "Handler/Shipment.ashx",
            data: {
                action: "smateShow",
                id: url1,
            },
            success: function (data) {
                var data1 = eval(data);
                $(data1).each(function (index, item) {
                    var str = "<tr class='text-c'><td>" + item.ShipmentMate_Id + "</td><td>" + item.Product_Name + "</td><td>" + item.ShipmentMate_Num + "</td><td>" + item.ShipmentMate_Price + "</td></tr>"
                    $("#psser tbody").append(str);
                })
            }
        })
    })
    function add() {
        var url = document.location.href;
        var url1 = url.split("=")[1];
        $.ajax({
            type: "post",
            url: "Handler/Shipment.ashx",
            data: {
                action:"Pay",
                id: url1,
            },
            success:function(data){
                if (data > 0) {
                    alert("付款成功");
                    
                }
                else {
                    alert("没付款还想通过？");
                }
        }
        })
    }
</script>
